package o;

import androidx.annotation.NonNull;
import com.huawei.hms.support.api.entity.pay.PayStatusCodes;
import com.huawei.hms.support.api.pay.PayResultInfo;

public class fcx {
    private static fcx ˎ;

    public static synchronized fcx ˎ() {
        fcx o_fcx;
        synchronized (fcx.class) {
            if (ˎ == null) {
                ˎ = new fcx();
            }
            o_fcx = ˎ;
        }
        return o_fcx;
    }

    public String ˋ(@NonNull PayResultInfo payResultInfo, String str, fcu o_fcu) {
        int returnCode = payResultInfo.getReturnCode();
        if (returnCode == 0) {
            try {
                fcr o_fcr = new fcr(o_fcu.ॱ(), o_fcu.ॱॱ(), o_fcu.ˏ(), String.valueOf(System.currentTimeMillis()));
                o_fcr.ˋ(String.valueOf(returnCode));
                o_fcr.ˊ(payResultInfo.getOrderID());
                o_fcr.ˎ(payResultInfo.getErrMsg());
                o_fcr.ˏ(payResultInfo.getTime());
                o_fcr.ᐝ(payResultInfo.getSign());
                o_fcr.ॱ("yes");
                avz.ˎ(str, o_fcr.ˎ());
            } catch (Throwable e) {
                Throwable th = e;
                returnCode = PayStatusCodes.PAY_STATE_ERROR;
                Logger.ˋ("PayAPISupport", "parsePayResult exception:", th);
            }
        }
        return String.valueOf(returnCode);
    }
}
